package com.zhanghu.proxy;

/**
 * @Author: zhanghu
 * @Description:
 * @Date: Create in 9:52 2020/1/20
 * @modified by:
 */
public class ProxyTest {
    public static void main(String[] args) {
        Singer singer = new Singer();
        Singer factory = (Singer) new ProxyFactory(singer).getProxy();
        factory.sing();
        Player player = new Player();
        Player player1 = (Player) new ProxyFactory(player).getProxy();
        player1.play();
    }
}
